pub mod user;
pub mod post;

use sea_orm::{DatabaseConnection, DbErr, Database};

pub async fn init_db(mysql_url: &str) -> Result<DatabaseConnection, DbErr> {
    Database::connect(mysql_url).await
}
